class VipPayEntity {
  String? endTime;
  bool? open;
  List<VipPrices>? prices;

  VipPayEntity({this.endTime, this.open, this.prices});

  VipPayEntity.fromJson(Map<String, dynamic> json) {
    endTime = json['endTime'];
    open = json['open'];
    if (json['prices'] != null) {
      prices = <VipPrices>[];
      json['prices'].forEach((v) {
        prices!.add(new VipPrices.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['endTime'] = this.endTime;
    data['open'] = this.open;
    if (this.prices != null) {
      data['prices'] = this.prices!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class VipPrices {
  int? id;
  String? name;
  String? price;
  String? priceOld;
  String? tag;

  VipPrices({this.id, this.name, this.price, this.priceOld, this.tag});

  VipPrices.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
    price = json['price'];
    priceOld = json['priceOld'];
    tag = json['tag'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['price'] = this.price;
    data['priceOld'] = this.priceOld;
    data['tag'] = this.tag;
    return data;
  }
}